package com.nowcoder.community.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//评论
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {

    private int id;

    private int userId;

    private int entityType;//实体类型，评论目标的类别

    private int entityId;//目标帖子id

    //在某条评论中发出评论时，所指向的某个用户id。例如：***回复A，这个A的id就是当前target_id的值
    private int targetId;

    private String content;

    private int status;

    private Date createTime;

}
